package com.atmc.mapper;

import com.atmc.bean.Code;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//@Mapper
@Component
public interface CodeMapper {
    List<Code> selectAll();
    Code selectOne(@RequestParam("acco_name") String acco_name);
    int deleteOne(@Param("acco_id") int id);
    int updateOne(Code code);
    int insertOne(Code code);
}
